if(this != _root.on_clothing1 and this != _root.on_clothing2 and this != _root.on_clothing3 and this != _root.on_clothing4 and this != _root.on_clothing5 and this != _root.on_clothing6 and this != _root.on_clothing7 and this != _root.on_clothing8 and this != _root.on_clothing9 and this != _root.on_clothing10)
{
var _loc3_ = random(4) + 1;
maojiao_sd(_loc3_);
if(this._name.substr(0,2) == "a1")
{
if(_root.on_clothing1 != undefined)
{
_root.on_clothing1._x = _root.on_clothing1.x0;
_root.on_clothing1._y = _root.on_clothing1.y0;
_root.on_clothing1 = undefined;
}
_root.on_clothing1 = this;
}
if(this._name.substr(0,2) == "a2")
{
if(_root.on_clothing2 != undefined)
{
_root.on_clothing2._x = _root.on_clothing2.x0;
_root.on_clothing2._y = _root.on_clothing2.y0;
_root.on_clothing2 = undefined;
}
_root.on_clothing2 = this;
}
if(this._name.substr(0,2) == "a3")
{
if(_root.on_clothing3 != undefined)
{
_root.on_clothing3._x = _root.on_clothing3.x0;
_root.on_clothing3._y = _root.on_clothing3.y0;
_root.on_clothing3 = undefined;
}
_root.on_clothing3 = this;
}
if(this._name.substr(0,2) == "a4")
{
if(_root.on_clothing4 != undefined)
{
_root.on_clothing4._x = _root.on_clothing4.x0;
_root.on_clothing4._y = _root.on_clothing4.y0;
_root.on_clothing4 = undefined;
}
_root.on_clothing4 = this;
}
if(this._name.substr(0,2) == "a5")
{
if(_root.on_clothing5 != undefined)
{
_root.on_clothing5._x = _root.on_clothing5.x0;
_root.on_clothing5._y = _root.on_clothing5.y0;
_root.on_clothing5 = undefined;
}
_root.on_clothing5 = this;
}
if(this._name.substr(0,2) == "a6")
{
if(_root.on_clothing6 != undefined)
{
_root.on_clothing6._x = _root.on_clothing6.x0;
_root.on_clothing6._y = _root.on_clothing6.y0;
_root.on_clothing6 = undefined;
}
_root.on_clothing6 = this;
}
if(this._name.substr(0,2) == "a7")
{
if(_root.on_clothing7 != undefined)
{
_root.on_clothing7._x = _root.on_clothing7.x0;
_root.on_clothing7._y = _root.on_clothing7.y0;
_root.on_clothing7 = undefined;
}
_root.on_clothing7 = this;
}
if(this._name.substr(0,2) == "a8")
{
if(_root.on_clothing8 != undefined)
{
_root.on_clothing8._x = _root.on_clothing8.x0;
_root.on_clothing8._y = _root.on_clothing8.y0;
_root.on_clothing8 = undefined;
}
_root.on_clothing8 = this;
}
if(this._name.substr(0,2) == "a9")
{
if(_root.on_clothing9 != undefined)
{
_root.on_clothing9._x = _root.on_clothing9.x0;
_root.on_clothing9._y = _root.on_clothing9.y0;
_root.on_clothing9 = undefined;
}
_root.on_clothing9 = this;
}
if(this._name.substr(0,2) == "ax")
{
if(_root.on_clothing10 != undefined)
{
_root.on_clothing10._x = _root.on_clothing10.x0;
_root.on_clothing10._y = _root.on_clothing10.y0;
_root.on_clothing10 = undefined;
}
_root.on_clothing10 = this;
}
if(this._name.substr(0,2) == "aw")
{
if(_root.on_clothing11 != undefined)
{
_root.on_clothing11._x = _root.on_clothing10.x0;
_root.on_clothing11._y = _root.on_clothing10.y0;
_root.on_clothing11 = undefined;
}
_root.on_clothing11 = this;
}
}
}
else
{
this._x = this.x0;
this._y = this.y0;
if(this._name.substr(0,2) == "a1")
{
if(_root.on_clothing1 == this)
{
_root.on_clothing1 = undefined;
}
}
if(this._name.substr(0,2) == "a2")
{
if(_root.on_clothing2 == this)
{
_root.on_clothing2 = undefined;
}
}
if(this._name.substr(0,2) == "a3")
{
if(_root.on_clothing3 == this)
{
_root.on_clothing3 = undefined;
}
}
if(this._name.substr(0,2) == "a4")
{
if(_root.on_clothing4 == this)
{
_root.on_clothing4 = undefined;
}
}
if(this._name.substr(0,2) == "a5")
{
if(_root.on_clothing5 == this)
{
_root.on_clothing5 = undefined;
}
}
if(this._name.substr(0,2) == "a6")
{
if(_root.on_clothing6 == this)
{
_root.on_clothing6 = undefined;
}
}
if(this._name.substr(0,2) == "a7")
{
if(_root.on_clothing7 == this)
{
_root.on_clothing7 = undefined;
}
}
if(this._name.substr(0,2) == "a8")
{
if(_root.on_clothing8 == this)
{
_root.on_clothing8 = undefined;
}
}
if(this._name.substr(0,2) == "a9")
{
if(_root.on_clothing9 == this)
{
_root.on_clothing9 = undefined;
}
}
if(this._name.substr(0,2) == "ax")
{
if(_root.on_clothing10 == this)
{
_root.on_clothing10 = undefined;
}
}
if(this._name.substr(0,2) == "aw")
{
if(_root.on_clothing11 == this)
{
_root.on_clothing11 = undefined;
}
}
}
this.stopDrag();
this.swapDepths(this.dep);
_root.matchCheck(this);
};
}
}
this.onEnterFrame = function()
{
if(_root.on_clothing1 != undefined and Math.abs(_root.on_clothing1._x - _root.on_clothing1.xx) < 1 and Math.abs(_root.on_clothing1._y - _root.on_clothing1.yy) < 1 or _root.on_clothing2 != undefined and Math.abs(_root.on_clothing2._x - _root.on_clothing2.xx) < 1 and Math.abs(_root.on_clothing2._y - _root.on_clothing2.yy) < 1)
{
model_bady_mc.underwear1_mc._visible = false;
}
else
{
model_bady_mc.underwear1_mc._visible = true;
}
if(_root.on_clothing1 != undefined and Math.abs(_root.on_clothing1._x - _root.on_clothing1.xx) < 1 and Math.abs(_root.on_clothing1._y - _root.on_clothing1.yy) < 1 or _root.on_clothing3 != undefined and Math.abs(_root.on_clothing3._x - _root.on_clothing3.xx) < 1 and Math.abs(_root.on_clothing3._y - _root.on_clothing3.yy) < 1)